// 我们的优势模块里的盒子

.advantage_box{
  position: relative;
  padding-top: 3px;
  width: 200px;
  height: 150px;
  background-color: #ffffff;
  box-shadow: 0px 2px 5px 1px #cccccc;
  text-align: center;
  overflow: hidden;
  .box_num_con {
    position: relative;
    padding-top: 45px;
    font-size: 16px;
    color: #333333;
    z-index: 9;
    .box_num {
      font-size: 48px;
    }
  }
  .box_desc {
    padding-top: 20px;
    padding-bottom: 30px;
    font-size: 20px;
    color: #333333;
  }
  .box_circle_bg {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 100%;
    left: 50%;
    top: 50%;
    margin-left: -32px;
    margin-top: -32px;
    z-index: 1;
    opacity: 0.1;
    transform: scale(0);
    transition: transform 0.3s ease-out;

    &::before, &::after {
      content: " ";
      position: absolute;
      border-radius: 100%;
      left: 50%;
      top: 50%;
      opacity: 0.5;
    }

    &::before {
      width: 120px;
      height: 120px;
      margin-left: -60px;
      margin-top: -60px;
      transform: scale(0);
    }

    &::after {
      width: 200px;
      height: 200px;
      margin-left: -100px;
      margin-top: -100px;
      transform: scale(0);
    }
  }
  // 背景动画
  @at-root &:hover{
    .box_circle_bg {
      transform: scale(1);
      &::before {
        transform: scale(1);
      }
      &::after {
        transform: scale(1);
      }
    }
  }

  &.advantage_inline_box {
    display: inline-block;
    margin: 0 15px;
  }

  &::before {
    content: " ";
    left: 0;
    top: 0px;
    position: absolute;
    width: 100%;
    height: 3px;
  }

  // blue box
  &.advantage_blue_box {
    .box_num {
      color: #1b87ef;
    }
    &::before{
      background: linear-gradient(to right, #1b87ef 0%, #33b7f7 100%)
    }
    .box_circle_bg{
      background-color: #1b87ef;
      &::before, &::after{
        background-color: #1b87ef;
      }
    }
  }

  // cyan box
  &.advantage_cyan_box {
    .box_num {
      color: #21c1e4;
    }
    &::before{
      background: linear-gradient(to right, #21c1e4 0%, #3cddef 100%)
    }
    .box_circle_bg{
      background-color: #1b87ef;
      &::before, &::after{
        background-color: #1b87ef;
      }
    }
  }

  // green box
  &.advantage_green_box {
    .box_num {
      color: #38c172;
    }
    &::before{
      background: linear-gradient(to right, #38c172 0%, #43d698 100%)
    }
    .box_circle_bg{
      background-color: #38c172;
      &::before, &::after{
        background-color: #38c172;
      }
    }
  }

  // orange box
  &.advantage_orange_box {
    .box_num {
      color: #fecb65;
    }
    &::before{
      background: linear-gradient(to right, #fecb65 0%, #fd7397 100%)
    }
    .box_circle_bg{
      background-color: #fecb65;
      &::before, &::after{
        background-color: #fecb65;
      }
    }
  }

  // red box
  &.advantage_red_box {
    .box_num {
      color: #fc5694;
    }
    &::before{
      background: linear-gradient(to right, #fc5694 0%, #f96b70 100%)
    }
    .box_circle_bg{
      background-color: #fc5694;
      &::before, &::after{
        background-color: #fc5694;
      }
    }
  }
}

.advantage_box2{
  width: 180px;
  height: 240px;
  border-radius: 5px;
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: box-shadow .3s ease-in;
  cursor: pointer;

  &:hover {
    box-shadow: 0 2px 3px 1px #a5cbf2;
  }

  &.advantage_float_box {
    float: left;
    margin-right: 10px;
  }
  
  &:first-child {
    margin-left: 10px;
  }
  
  .advantage_icon {
    height: 60px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .advantage_title {
    font-size: 18px;
    font-weight: 800;
  }
  .advantage_descript {
    margin-top: 15px;
    font-size: 12px;
    line-height: 15px;
    text-align: left;
  }

  &.long_desc {
    padding-bottom: 0px;
  }
}

@keyframes advantage_bg_animate {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(2);
  }
}

// 主营业务的盒子

.bussiness_box {
  position: relative;
  width: 170px;
  cursor: pointer;

  &:hover {
    .hover_bg {
      opacity: 1;
    }

    .blue_bg {
      opacity: 0;
    }
  }

  &.bussiness_box_float {
    float: left;
  }

  .hover_bg {
    position: absolute;
    left: 0;
    top: -10px;
    width: 100%;
    height: 190px;
    background-color: #1b87ef;
    opacity: 0;
    transition: opacity 0.3s ease-in;
  }
  
  .blue_bg {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: #1b87ef;
    opacity: 1;
    transition: opacity 0.3s ease-in;
  }

  .content_box {
    position: relative;
    width: 150px;
    height: 170px;
    margin: 0 auto;
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 0px 6px 0px #a5cbf2;

    .content_icon {
      margin-top: -32px;
    }

    .descript{
      padding: 0 15px;
      margin-top: 20px;
      font-size: 14px;
      color: #333333;
      line-height: 17px;
    }
  }
}
